<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="nav.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		var adddom = "<table class='table table-bordered table-hover table-condersed'>"
				+ "<tr class='active success info'>"
				+ "<th>管理员昵称</th>"
				+ "<th>管理员级别</th>"
				+ "<th>管理员权限</th>"
				+ "<th colspan=2>操作</th>"
				+ "</tr>"
				+ "<c:forEach items='${Users}' var='u'>"
				+ "<tr class='active success info'>"
				+ "<td>${u.username}</td>"
				+ "<c:if test='${u.state==0}'>"
				+ "<td>超级管理员</td>"
				+ "<td>全部权限</td>"
				+ "<td colspan=2>超级管理员权限不可修改</td>"
				+ "</c:if>"
				+ "<c:if test='${u.state!=0}'>"
				+ "<c:if test='${u.state==1}'>"
				+ "<td>高级管理员</td>"
				+ "<td>分类管理,商品管理,供应商管理,订单管理</td>"
				+ "</c:if>"
				+ "<c:if test='${u.state==2}'>"
				+ "<td>普通管理员</td>"
				+ "<td>分类管理,商品管理,供应商管理</td>"
				+ "</c:if>"
				+ "<td><a href='updatemanager.jsp?state=${u.state}&uid=${u.uid}' class='btn'>修改权限</a></td>"
				+ "<td><a href='../UserServlet?action=delete&uid=${u.uid}' class='btn'>删除</a></td>"
				+ "</c:if></tr></c:forEach></table>"
		var navdom = "<strong class='am-text-danger am-text-lg'>管理员权限</strong> / <small>Manager</small>";
		$("#xyz").html(adddom);
		$("#abc").html(navdom);
	</script>
</body>
</html>